import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
  define: {
    'process.env': {
      VUE_APP_API_BASE_URL:'/api'
    }
  },
  plugins: [vue()],
  resolve: {
    // 设置路径别名
    alias: {
      '@':path.resolve(__dirname, 'src')
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
        additionalData: '@root-entry-name: default;',
      },
    },
  }
})

